package com.numberone.web.controller.homeliketype;

import java.util.List;

import com.numberone.system.util.JsonResult;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.*;
import com.numberone.common.annotation.Log;
import com.numberone.common.enums.BusinessType;
import com.numberone.system.domain.HomeLikeType;
import com.numberone.system.service.IHomeLikeTypeService;
import com.numberone.framework.web.base.BaseController;
import com.numberone.common.page.TableDataInfo;
import com.numberone.common.base.AjaxResult;
import com.numberone.common.utils.poi.ExcelUtil;

/**
 * 首页模糊搜素图片 信息操作处理
 * 
 * @author 于沛麟
 * @date 2020-09-28
 */
@RestController
@RequestMapping("/api/homeLikeType")
public class HomeLikeTypeApiController extends BaseController
{
	
	@Autowired
	private IHomeLikeTypeService homeLikeTypeService;


	/**
	 * 获取首页模糊搜素图片相关的数据
	 * @return
	 */
	@PostMapping("/get")
	public  Object get(){
		List<HomeLikeType> homeLikeTypes = homeLikeTypeService.query();
		if (homeLikeTypes.isEmpty()){
			return JsonResult.nodata();

		}
		return JsonResult.success(homeLikeTypes);

	}
}
